/**
 * 父服务 在window上暴露的方法
 */

let comps;
let commonPkg;
let key = '*963./8520qqazwsxedcrfvtgbyhnujm'; //一个固定死的验证的key

function getMasterComps() {
  if (!comps) comps = window.masterData.getMasterComps(key);
  return comps;
}
function getMasterCommonPkg() {
  if (!commonPkg) commonPkg = window.masterData.getMasterCommonPkg(key);
  return commonPkg;
}

export { getMasterComps, getMasterCommonPkg };
export default {
  getMasterComps,
  getMasterCommonPkg,
};
